|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.app.state.AbstractAppState
ga.view.appstate.RootNodeState
ga.view.appstate.SceneState
furny.states.InitializerPreState
public class InitializerPreState
Pre state to initialize the population and show room.
Nested Class Summary | |
---|---|
private class |
InitializerPreState.ViewSwitchListener
Keyboard listener to switch the perspective. |
Field Summary | |
---|---|
private ISIGA<FurnLayoutIndividual> |
algorithm
|
private CameraSettings |
camSettings
|
private CamDragListener |
dragListener
|
private IInteractiveFitnessEvaluator<FurnLayoutIndividual> |
evaluator
|
private FurnLayoutIndividual |
ind
|
private static java.util.logging.Logger |
LOGGER
|
private MenuListener |
menuListener
|
private IPhenotypeGenerator<FurnLayoutIndividual,com.jme3.scene.Node> |
phenotypeGenerator
|
private com.jme3.system.AppSettings |
settings
|
private ShowRoom |
showRoom
|
private ShowRoomFactory |
showRoomFactory
|
private ShowRoomSettings |
srSettings
|
private InitializerUIState |
uiState
|
Fields inherited from class ga.view.appstate.SceneState |
---|
app, assetManager, cam, inputManager, renderManager, stateManager, timer, viewPort |
Fields inherited from class ga.view.appstate.RootNodeState |
---|
rootNode |
Fields inherited from class com.jme3.app.state.AbstractAppState |
---|
initialized |
Constructor Summary | |
---|---|
InitializerPreState(IInteractiveFitnessEvaluator<FurnLayoutIndividual> evaluator,
ISIGA<FurnLayoutIndividual> algorithm,
IPhenotypeGenerator<FurnLayoutIndividual,com.jme3.scene.Node> phenotypeGenerator)
Instantiates a new initializer pre state. |
Method Summary | |
---|---|
void |
cleanup()
|
FurnLayoutIndividual |
getIndividual()
Gets the current individual. |
int |
getPopPercentage()
Gets the population percentage that should be initialized with the loaded individual. |
java.lang.String |
getPopPercentageString()
Gets the population percentage that should be initialized with the loaded individual as string. |
int |
getRoomHeight()
Gets the room height. |
int |
getRoomLength()
Gets the room length. |
java.lang.String |
getRoomSizeString()
Gets the room size as string. |
int |
getRoomWidth()
Gets the room width. |
void |
initialize(com.jme3.app.state.AppStateManager stateManager,
com.jme3.app.Application app)
|
void |
saveSettings()
Saves settings in the GA context. |
void |
setEnabled(boolean enabled)
|
void |
setFloorTexture(java.lang.String name)
Sets the floor texture. |
void |
setIndividual(FurnLayoutIndividual ind)
Sets a new individual. |
void |
setLightingType(BoxShowRoom.LightingType lightingType)
Sets the lighting type. |
void |
setMenuListener(MenuListener menuListener)
Sets the menu listener. |
void |
setPopPercentage(int percentage)
Sets the population percentage that should be initialized with the loaded individual. |
void |
setRoomSize(int width,
int length,
int height)
Sets the room size. |
void |
setWallColor(com.jme3.math.ColorRGBA color)
Sets the wall color. |
void |
updateShowRoom()
Updates show room. |
Methods inherited from class ga.view.appstate.SceneState |
---|
finalCleanUp, getCamera |
Methods inherited from class ga.view.appstate.RootNodeState |
---|
getRootNode, update |
Methods inherited from class com.jme3.app.state.AbstractAppState |
---|
isEnabled, isInitialized, postRender, render, stateAttached, stateDetached |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jme3.app.state.AppState |
---|
isEnabled, isInitialized, postRender, render, stateAttached, stateDetached, update |
Field Detail |
---|
private static final java.util.logging.Logger LOGGER
private final IInteractiveFitnessEvaluator<FurnLayoutIndividual> evaluator
private final ISIGA<FurnLayoutIndividual> algorithm
private ShowRoomFactory showRoomFactory
private ShowRoom showRoom
private final ShowRoomSettings srSettings
private CameraSettings camSettings
private final IPhenotypeGenerator<FurnLayoutIndividual,com.jme3.scene.Node> phenotypeGenerator
private CamDragListener dragListener
private MenuListener menuListener
private com.jme3.system.AppSettings settings
private InitializerUIState uiState
private FurnLayoutIndividual ind
Constructor Detail |
---|
public InitializerPreState(IInteractiveFitnessEvaluator<FurnLayoutIndividual> evaluator, ISIGA<FurnLayoutIndividual> algorithm, IPhenotypeGenerator<FurnLayoutIndividual,com.jme3.scene.Node> phenotypeGenerator)
evaluator
- the evaluatoralgorithm
- the algorithmphenotypeGenerator
- the phenotype generatorMethod Detail |
---|
public void setMenuListener(MenuListener menuListener)
IMenuListenerParent
setMenuListener
in interface IMenuListenerParent
menuListener
- the new menu listenerpublic void initialize(com.jme3.app.state.AppStateManager stateManager, com.jme3.app.Application app)
initialize
in interface com.jme3.app.state.AppState
initialize
in class SceneState
public void setFloorTexture(java.lang.String name)
name
- the new floor texturepublic void setWallColor(com.jme3.math.ColorRGBA color)
color
- the new wall colorpublic void saveSettings()
public void setPopPercentage(int percentage)
percentage
- the new pop percentagepublic java.lang.String getPopPercentageString()
public int getPopPercentage()
public java.lang.String getRoomSizeString()
public int getRoomWidth()
public int getRoomLength()
public int getRoomHeight()
public void setRoomSize(int width, int length, int height)
width
- the widthlength
- the lengthheight
- the heightpublic void setIndividual(FurnLayoutIndividual ind)
ind
- the new individualpublic FurnLayoutIndividual getIndividual()
public void setLightingType(BoxShowRoom.LightingType lightingType)
lightingType
- the new lighting typepublic void updateShowRoom()
public void setEnabled(boolean enabled)
setEnabled
in interface com.jme3.app.state.AppState
setEnabled
in class SceneState
public void cleanup()
cleanup
in interface com.jme3.app.state.AppState
cleanup
in class RootNodeState
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |